package engine.services.impl;

import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.InputStream;

import javax.imageio.ImageIO;

import engine.dataobjects.Image;
import engine.services.IImageService;

public class AwtImageService implements IImageService {

	@Override
	public Image getImage(InputStream is) throws IOException {
		BufferedImage img = ImageIO.read(is);
		Image image = new Image(img.getWidth(), img.getHeight());
		return image;
	}

}
